/*******************************************************************************
 * Size: 32 px
 * Bpp: 1
 * Opts: --bpp 1 --size 32 --no-compress --font DS-DIGIT-4.ttf --symbols 1234567890/ADEFHIMNORSTUW --format lvgl -o font_ds_digital_bold_italic_32.c
 ******************************************************************************/

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#ifndef FONT_DS_DIGITAL_BOLD_ITALIC_32
#define FONT_DS_DIGITAL_BOLD_ITALIC_32 1
#endif

#if FONT_DS_DIGITAL_BOLD_ITALIC_32

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+002F "/" */
    0x0, 0x3, 0x0, 0x1e, 0x0, 0x1c, 0x0, 0x38,
    0x0, 0x78, 0x0, 0x70, 0x0, 0xe0, 0x1, 0xe0,
    0x1, 0xc0, 0x0, 0x80, 0x0, 0x0, 0x6, 0x0,
    0xe, 0x0, 0x1e, 0x0, 0x3c, 0x0, 0x38, 0x0,
    0x78, 0x0, 0xf0, 0x0, 0xe0, 0x0, 0xe0, 0x0,
    0xc0, 0x0, 0x80, 0x0,

    /* U+0030 "0" */
    0x3f, 0xf9, 0x7f, 0xd6, 0xfe, 0xdc, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x8,
    0x0, 0x0, 0x0, 0x18, 0x6, 0xe0, 0x3b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x7f, 0x6b,
    0xfe, 0x9f, 0xfc,

    /* U+0031 "1" */
    0x8, 0xce, 0xe7, 0x39, 0xc6, 0x0, 0xc, 0xe7,
    0x3b, 0x9c, 0x61, 0x0,

    /* U+0032 "2" */
    0x3f, 0xf8, 0x7f, 0xd0, 0xfe, 0xc0, 0x7, 0x0,
    0x1c, 0x0, 0x70, 0x1, 0xc0, 0x7, 0x0, 0x1c,
    0x7f, 0xa3, 0xff, 0x17, 0xf8, 0xe0, 0x3, 0x80,
    0xe, 0x0, 0x38, 0x0, 0xe0, 0x3, 0x7f, 0xb,
    0xfe, 0x1f, 0xfc,

    /* U+0033 "3" */
    0x3f, 0xf8, 0x7f, 0xd0, 0xfe, 0xc0, 0x7, 0x0,
    0x1c, 0x0, 0x70, 0x1, 0xc0, 0x7, 0x0, 0x1c,
    0x7f, 0xa3, 0xff, 0x7, 0xfa, 0x0, 0x18, 0x0,
    0xe0, 0x3, 0x80, 0xe, 0x0, 0x38, 0x7f, 0x63,
    0xfe, 0x9f, 0xfc,

    /* U+0034 "4" */
    0x80, 0x6, 0x0, 0x78, 0x7, 0xc0, 0x7e, 0x3,
    0xf0, 0x1f, 0x80, 0xf8, 0x7, 0xbf, 0xd3, 0xff,
    0xf, 0xf4, 0x0, 0x60, 0x7, 0x0, 0x38, 0x1,
    0xc0, 0xe, 0x0, 0x70, 0x1, 0x80, 0x4,

    /* U+0035 "5" */
    0x3f, 0xf9, 0x7f, 0xc6, 0xfe, 0x1c, 0x0, 0x70,
    0x1, 0xc0, 0x7, 0x0, 0x1c, 0x0, 0x60, 0x1,
    0x7f, 0x83, 0xff, 0x7, 0xfa, 0x0, 0x18, 0x0,
    0xe0, 0x3, 0x80, 0xe, 0x0, 0x38, 0x7f, 0x63,
    0xfe, 0x9f, 0xfc,

    /* U+0036 "6" */
    0x3f, 0xf9, 0x7f, 0xc6, 0xfe, 0x1c, 0x0, 0x70,
    0x1, 0xc0, 0x7, 0x0, 0x1c, 0x0, 0x60, 0x1,
    0x7f, 0x83, 0xff, 0x17, 0xfa, 0xe0, 0x1b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x7f, 0x6b,
    0xfe, 0x9f, 0xfc,

    /* U+0037 "7" */
    0xff, 0xe7, 0xfd, 0x3f, 0xb0, 0x7, 0x0, 0x70,
    0x7, 0x0, 0x70, 0x7, 0x0, 0x20, 0x0, 0x0,
    0x0, 0x6, 0x0, 0xe0, 0xe, 0x0, 0xe0, 0xe,
    0x0, 0xe0, 0x6, 0x0, 0x20,

    /* U+0038 "8" */
    0x3f, 0xf9, 0x7f, 0xd6, 0xfe, 0xdc, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x1d,
    0x7f, 0xa3, 0xff, 0x17, 0xfa, 0xe0, 0x1b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x7f, 0x6b,
    0xfe, 0x9f, 0xfc,

    /* U+0039 "9" */
    0x3f, 0xf9, 0x7f, 0xd6, 0xfe, 0xdc, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x1d,
    0x7f, 0xa3, 0xff, 0x7, 0xfa, 0x0, 0x18, 0x0,
    0xe0, 0x3, 0x80, 0xe, 0x0, 0x38, 0x7f, 0x63,
    0xfe, 0x9f, 0xfc,

    /* U+0041 "A" */
    0x3f, 0xf9, 0x7f, 0xd6, 0xfe, 0xdc, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x1d,
    0x7f, 0xa3, 0xff, 0x17, 0xfa, 0xe0, 0x1b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x80, 0xec,
    0x1, 0xa0, 0x2, 0x0, 0x0,

    /* U+0044 "D" */
    0x3f, 0xe1, 0x7f, 0xc6, 0xfe, 0x9c, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x8,
    0x0, 0x0, 0x0, 0x18, 0x6, 0xe0, 0x3b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x7f, 0x4b,
    0xfe, 0x1f, 0xf0,

    /* U+0045 "E" */
    0x3f, 0xfd, 0x7f, 0xe6, 0xff, 0x1c, 0x0, 0x70,
    0x1, 0xc0, 0x7, 0x0, 0x1c, 0x0, 0x60, 0x1,
    0x7f, 0x83, 0xff, 0x17, 0xf8, 0xe0, 0x3, 0x80,
    0xe, 0x0, 0x38, 0x0, 0xe0, 0x3, 0x7f, 0xb,
    0xfe, 0x1f, 0xfc,

    /* U+0046 "F" */
    0x3f, 0xfd, 0x7f, 0xe6, 0xff, 0x1c, 0x0, 0x70,
    0x1, 0xc0, 0x7, 0x0, 0x1c, 0x0, 0x60, 0x1,
    0x7f, 0x83, 0xff, 0x17, 0xf8, 0xe0, 0x3, 0x80,
    0xe, 0x0, 0x38, 0x0, 0xe0, 0x3, 0x0, 0x8,
    0x0, 0x0, 0x0,

    /* U+0048 "H" */
    0x0, 0x1, 0x0, 0x16, 0x0, 0xdc, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x1d,
    0x7f, 0xa3, 0xff, 0x17, 0xfa, 0xe0, 0x1b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x80, 0xec,
    0x1, 0xa0, 0x2, 0x0, 0x0,

    /* U+0049 "I" */
    0x8, 0xce, 0xf7, 0x39, 0xce, 0x30, 0x0, 0x67,
    0x39, 0xdc, 0xe3, 0x8, 0x40,

    /* U+004D "M" */
    0x3f, 0xf9, 0x7f, 0xd6, 0xfe, 0xdc, 0x7, 0x71,
    0x1d, 0xce, 0x77, 0x39, 0xdc, 0xe7, 0x63, 0x88,
    0xe, 0x0, 0x38, 0x18, 0xc6, 0xe0, 0x3b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x0, 0xe8,
    0x1, 0xa0, 0x2,

    /* U+004E "N" */
    0x5e, 0x5, 0xbc, 0x17, 0x78, 0xdc, 0xf7, 0x71,
    0xdd, 0xc7, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x8,
    0x0, 0x4, 0x0, 0x38, 0x6, 0xe0, 0x3b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x3b, 0x0, 0xe8,
    0x1, 0x80, 0x2,

    /* U+004F "O" */
    0x7, 0xe0, 0x7f, 0xc2, 0xfe, 0x9c, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x8,
    0x0, 0x0, 0x0, 0x18, 0x6, 0xe0, 0x3b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x39, 0x7f, 0x43,
    0xfe, 0x7, 0xf0,

    /* U+0052 "R" */
    0x3f, 0xe1, 0x7f, 0xc6, 0xfe, 0x9c, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x1d,
    0x7f, 0xa3, 0xff, 0x17, 0xf8, 0xe0, 0x3, 0x9c,
    0xe, 0x78, 0x39, 0xf0, 0xe3, 0xe3, 0x87, 0xc8,
    0xf, 0x20, 0x1c,

    /* U+0053 "S" */
    0x7, 0xf8, 0x7f, 0xf2, 0xff, 0x9c, 0x0, 0x70,
    0x1, 0xc0, 0x7, 0x0, 0x1c, 0x0, 0x60, 0x1,
    0x7f, 0x83, 0xff, 0x7, 0xfa, 0x0, 0x18, 0x0,
    0xe0, 0x3, 0x80, 0xe, 0x0, 0x39, 0xff, 0x4f,
    0xfe, 0x1f, 0xf0,

    /* U+0054 "T" */
    0x7f, 0xfb, 0xff, 0xf7, 0xff, 0x80, 0x0, 0x2,
    0x0, 0x1c, 0x0, 0x70, 0x1, 0xc0, 0x3, 0x0,
    0x0, 0x0, 0x0, 0x1, 0x80, 0xe, 0x0, 0x38,
    0x0, 0xe0, 0x3, 0x80, 0xe, 0x0, 0x38, 0x0,
    0xe0, 0x1, 0x0,

    /* U+0055 "U" */
    0x40, 0x5, 0x80, 0x17, 0x0, 0xdc, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x60, 0x8,
    0x0, 0x0, 0x0, 0x18, 0x6, 0xe0, 0x3b, 0x80,
    0xee, 0x3, 0xb8, 0xe, 0xe0, 0x39, 0x7f, 0x43,
    0xfe, 0x7, 0xf0,

    /* U+0057 "W" */
    0x40, 0x5, 0x80, 0x17, 0x0, 0xdc, 0x7, 0x70,
    0x1d, 0xc0, 0x77, 0x1, 0xdc, 0x7, 0x63, 0x8,
    0xe, 0x0, 0x38, 0x19, 0xe6, 0xe7, 0x3b, 0x9c,
    0xee, 0x73, 0xb8, 0x8e, 0xe0, 0x3b, 0x7f, 0x6b,
    0xfe, 0x9f, 0xfc
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 251, .box_w = 16, .box_h = 22, .ofs_x = 1, .ofs_y = -1},
    {.bitmap_index = 44, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 79, .adv_w = 146, .box_w = 5, .box_h = 18, .ofs_x = 3, .ofs_y = 1},
    {.bitmap_index = 91, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 126, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 161, .adv_w = 261, .box_w = 13, .box_h = 19, .ofs_x = 3, .ofs_y = 1},
    {.bitmap_index = 192, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 227, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 262, .adv_w = 261, .box_w = 12, .box_h = 19, .ofs_x = 4, .ofs_y = 1},
    {.bitmap_index = 291, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 326, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 361, .adv_w = 261, .box_w = 14, .box_h = 21, .ofs_x = 2, .ofs_y = -1},
    {.bitmap_index = 398, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 433, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 468, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 503, .adv_w = 261, .box_w = 14, .box_h = 21, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 540, .adv_w = 146, .box_w = 5, .box_h = 20, .ofs_x = 3, .ofs_y = 0},
    {.bitmap_index = 553, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 588, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 623, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 658, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 693, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 728, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 3, .ofs_y = 0},
    {.bitmap_index = 763, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 798, .adv_w = 261, .box_w = 14, .box_h = 20, .ofs_x = 2, .ofs_y = 0}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint8_t glyph_id_ofs_list_1[] = {
    0, 0, 0, 1, 2, 3, 0, 4,
    5, 0, 0, 0, 6, 7, 8, 0,
    0, 9, 10, 11, 12, 0, 13
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 47, .range_length = 11, .glyph_id_start = 1,
        .unicode_list = NULL, .glyph_id_ofs_list = NULL, .list_length = 0, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_TINY
    },
    {
        .range_start = 65, .range_length = 23, .glyph_id_start = 12,
        .unicode_list = NULL, .glyph_id_ofs_list = glyph_id_ofs_list_1, .list_length = 23, .type = LV_FONT_FMT_TXT_CMAP_FORMAT0_FULL
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
#endif

#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 2,
    .bpp = 1,
    .kern_classes = 0,
    .bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
    .cache = &cache
#endif
};

extern const lv_font_t font_ds_digital_bold_italic_32;


/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t font_ds_digital_bold_italic_32 = {
#else
lv_font_t font_ds_digital_bold_italic_32 = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 22,          /*The maximum line height required by the font*/
    .base_line = 1,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = -3,
    .underline_thickness = 2,
#endif
    .dsc = &font_dsc,          /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
    .fallback = &font_ds_digital_bold_italic_32,
#endif
    .user_data = NULL,
};



#endif /*#if FONT_DS_DIGITAL_BOLD_ITALIC_32*/

